package FirefightingTruck;
import CarController.*;


public class FirefightingTruckAdapter extends CarController {
    private FirefightingTruckHorns horns;
    private FirefightingTruckMessage FirefightingTruckMessage;
    public FirefightingTruckAdapter() {
        horns = new FirefightingTruckHorns();
        FirefightingTruckMessage = new FirefightingTruckMessage();
    }
    @Override
    public void horns() {
        horns.setVolume("~~~火警警报声~~~");
        horns.volumeInfo();
    }

    @Override
    public void message() {
        FirefightingTruckMessage.setColor("红白相间");
        FirefightingTruckMessage.setSize("大型车");
        System.out.println("颜色为:"+ FirefightingTruckMessage.colorInfo());
        System.out.println("车型为："+ FirefightingTruckMessage.sizeInfo());
    }
}
